package com.blueocean_health.care.management.domain.ordervo;

import java.util.Date;
import java.util.List;

import com.blueocean_health.care.management.domain.base.ReceiptDetail;
import org.springframework.format.annotation.DateTimeFormat;

import com.blueocean_health.care.management.em.OrderStatusEnum;
import com.blueocean_health.care.management.em.SexEnum;

/**
 * @Author ChenPeng cp
 * @Date 2017/8/21 10:17
 */


public class OrderInfoVo {

    private String orderId;
    private String patientName; //患者名称
    private String sex;
    @SuppressWarnings("unused")
	private String sexName;
    private String phone;
    private String contact;
    private String patientRemark; //患者备注
    private String patientId;  //住院id
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date admissionTime; //入院日期
    private List<OrderDetail> orderDetail;
    private String orderStatus;
    private String payStatus;
    @SuppressWarnings("unused")
	private String orderStatusName;
    private Long version;
    private Integer addFlag; // 0:暂存  1：派单
    private Integer age;

    //拆分订单新增
    private String orderType;   //1:正常  2:续费 3:退款
    private String introducer;  //介绍人
    private Integer proportions;  //提成比例
    private String superOrderId;   //父订单id
    private String renewOrderId;   //被续费的订单id
    private String refundOrderId;   //退款订单所退的订单id
    private String serviceOrderId;  //退款订单所退的订单明细id
    private String serviceOrderTime;//所选明细的时间周期
    private Boolean moneyStatus;  //是否已收款
    private ReceiptDetail receiptDetail; //收据信息


    public String getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(String payStatus) {
        this.payStatus = payStatus;
    }

    public String getRenewOrderId() {
        return renewOrderId;
    }

    public void setRenewOrderId(String renewOrderId) {
        this.renewOrderId = renewOrderId;
    }

    public String getServiceOrderTime() {
        return serviceOrderTime;
    }

    public void setServiceOrderTime(String serviceOrderTime) {
        this.serviceOrderTime = serviceOrderTime;
    }

    public String getRefundOrderId() {
        return refundOrderId;
    }

    public void setRefundOrderId(String refundOrderId) {
        this.refundOrderId = refundOrderId;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getIntroducer() {
        return introducer;
    }

    public void setIntroducer(String introducer) {
        this.introducer = introducer;
    }

    public Integer getProportions() {
        return proportions;
    }

    public void setProportions(Integer proportions) {
        this.proportions = proportions;
    }

    public String getSuperOrderId() {
        return superOrderId;
    }

    public void setSuperOrderId(String superOrderId) {
        this.superOrderId = superOrderId;
    }

    public String getServiceOrderId() {
        return serviceOrderId;
    }

    public void setServiceOrderId(String serviceOrderId) {
        this.serviceOrderId = serviceOrderId;
    }

    public Boolean getMoneyStatus() {
        return moneyStatus;
    }

    public void setMoneyStatus(Boolean moneyStatus) {
        this.moneyStatus = moneyStatus;
    }

    public ReceiptDetail getReceiptDetail() {
        return receiptDetail;
    }

    public void setReceiptDetail(ReceiptDetail receiptDetail) {
        this.receiptDetail = receiptDetail;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getAddFlag() {
        return addFlag;
    }

    public void setAddFlag(Integer addFlag) {
        this.addFlag = addFlag;
    }

    public String getSexName() {
		return getSex()==null?null:SexEnum.valueOf("_"+getSex()).getVal();
	}

	public void setSexName(String sexName) {
		this.sexName = sexName;
	}

	public String getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(String orderStatus) {
		this.orderStatus = orderStatus;
	}

	public String getOrderStatusName() {
		return getOrderStatus()==null?null:OrderStatusEnum.valueOf("_"+getOrderStatus()).getVal();
	}

	public void setOrderStatusName(String orderStatusName) {
		this.orderStatusName = orderStatusName;
	}

    public OrderInfoVo() {
        this.version = System.currentTimeMillis();
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getPatientRemark() {
        return patientRemark;
    }

    public void setPatientRemark(String patientRemark) {
        this.patientRemark = patientRemark;
    }

    public String getPatientId() {
        return patientId;
    }

    public void setPatientId(String patientId) {
        this.patientId = patientId;
    }

    public Date getAdmissionTime() {
        return admissionTime;
    }

    public void setAdmissionTime(Date admissionTime) {
        this.admissionTime = admissionTime;
    }

    public List<OrderDetail> getOrderDetail() {
        return orderDetail;
    }

    public void setOrderDetail(List<OrderDetail> orderDetail) {
        this.orderDetail = orderDetail;
    }



}
